package com.alibaba.nacos.naming.controllers;

import com.alibaba.nacos.naming.misc.UtilsAndCommons;
import com.alibaba.nacos.naming.service.sms.SMSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sms")
public class SMSCtr {

    @Autowired
    private SMSService smsService;

    /**
     * 批量发送预警短信
     * @param reqStr
     * @return
     */
    @RequestMapping("/batchSendWarnMessage")
    public String batchSendWarnMessage(@RequestBody String reqStr){
        return smsService.batchSendWarnMessage(reqStr);
    }
}
